package wrs.hcs.functions;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;

public class Webdriver   {
	
	public static WebDriver driver;
	

	@BeforeClass
	public WebDriver startUp()throws Exception{
		FirefoxProfile profile = new FirefoxProfile();
		profile.setPreference("network.proxy.type", 0);               
		driver = new FirefoxDriver(profile);
		return driver;
	}
	
	@AfterClass
	public void end()throws Exception{
		driver.quit();
	}

}
